package cn.shop.merchant.service;

import cn.shop.merchant.mapper.logs.MerchantLogMapper;
import cn.shop.merchant.model.logs.MerchantLog;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 日志表(BackLog)表服务实现类
 *
 * @author jzw
 * @since 2021-11-03 10:29:10
 */
@Service("merchantLogService")
public class MerchantLogService extends BaseServiceImpl<MerchantLogMapper, MerchantLog> {

	public boolean batchDelete(List<Long> idList) {
		return SqlHelper.retBool(baseMapper.batchDeleteWithFill(new MerchantLog(), Wrappers.<MerchantLog>lambdaQuery()
				.in(MerchantLog::getId, idList)));
	}

}

